package io.renren.modules.file.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class WangEditorResponse {
    public static final String SUCCESS = "0";
    private String errno = "1"; // 0 表示成功
    private List<WangEditorVo> data;

    public WangEditorResponse() {
    }

    public void setOne(WangEditorVo vo) {
        this.data = new ArrayList<>();
        this.data.add(vo);
        this.errno = SUCCESS;
    }

    public WangEditorResponse(String errorno, List<WangEditorVo> data) {
        this.errno = errorno;
        this.data = data;
    }

}